package com.wkf.calculator;

import com.wkf.calculator.utils.CheckExtraSymbol;
import com.wkf.calculator.utils.CountScanInfo;
import com.wkf.calculator.utils.GetScanInfos;

import java.util.ArrayList;

public class Director {
    int i;
    CheckExtraSymbol c1 = new CheckExtraSymbol(new Scan().getTmp());
    float result;
    public void directGo(){
        ArrayList backNumList = new ArrayList();
        if(c1.cutTmp() != null){
            for (i = 0; i < c1.cutTmp().size(); i++){
                backNumList.add(CountScanInfo.countScanInfo(c1.cutTmp().get(i)));
            }
            if (i != 0) {
                c1.insertBack(backNumList);
            }
        }

        result = CountScanInfo.countScanInfo(c1.getTmp());

    }
}
